{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "8417d472",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 练习课本P4"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "98517938",
   "metadata": {},
   "outputs": [],
   "source": [
    "from datetime import datetime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "9f6c9af2",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not an odd minute.\n"
     ]
    }
   ],
   "source": [
    "odds = [ 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,39,41,43,45,47,49,51,53,55,57,59 ]\n",
    "right_this_minute = datetime.today().minute\n",
    "\n",
    "if right_this_minute in odds:\n",
    "    print(\"This minute seems a little odd.\")\n",
    "else: \n",
    "    print(\"Not an odd minute.\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "9b1d7d52",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 思考if 是什么"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "b2817402",
   "metadata": {},
   "outputs": [],
   "source": [
    "# if 是条件判断   if 如果"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "6f7f07b3",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 思考form是什么  for是什么"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4918631d",
   "metadata": {},
   "outputs": [],
   "source": [
    "# for是循环遍历  form后面是范围"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
